package com.lucky.apple.Controller;

import com.lucky.apple.test.downTest;
import com.lucky.apple.test.singleDown;
import com.lucky.apple.test.test2;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by he on 2018/5/18.
 */
@Controller
@RequestMapping("/downLoad")
public class DownLoadController {

    @GetMapping("test")
    @ResponseBody
    public String test(){
        downTest.startDownLoad();
        return "111";
    };

    @GetMapping("test2")
    @ResponseBody
    public String test2(){
        singleDown.startDownLoad();
        return "222";
    };
}
